import SiteAuthor from "../entity/SiteAuthor.mjs";

/**
 * 站点作者DTO
 */
export default class SiteAuthorPluginDTO extends SiteAuthor {
  /**
   * 来源站点的域名
   * @type { string | undefined | null }
   */
  siteDomain

  /**
   * 作者级别
   * @type { number | undefined | null }
   */
  authorRank

  constructor(siteAuthor) {
    super(siteAuthor)
    if (siteAuthor !== undefined) {
      this.siteDomain = siteAuthor.siteDomain
      this.authorRank = siteAuthor.authorRank
    }
  }
}
